package gulimall.ware.dao;

import gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 * 
 * @author HLF
 * @email 1132814637@qq.com
 * @date 2022-05-11 16:14:49
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStock(@Param("wareSkuEntity") WareSkuEntity wareSkuEntity);

    Long getSkuStock(@Param("skuId") Long skuId);
}
